#-*-coding:utf-8-*-
from SocketServer import TCPServer, ForkingMixIn, StreamRequestHandler

class Server(ForkingMixIn, TCPServer): pass

class Handler(StreamRequestHandler):
    
    def handler(self):
        addr = self.getrequest.getpeername()
	print 'Got connectino from', addr
	self.wfile.write('Thank you for connecting')

server = Server(('', 1234), Handler)
server.server_forever()
